package del2.a;

public class Consultant extends Person {
	int competenceLevel;

	public Consultant(String name, int competenceLevel){
		super(name);
		this.competenceLevel = competenceLevel;
	}
	
	public int getCompLevel(){
		return competenceLevel;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append(super.getName() + 
				"\n         Consultant {" +
				getCompLevel() + "}");
		return sb.toString();
	}
}
